<div ms-controller="freePhone" class="freePhone">
	<div class="userTop">
		<h2 class="title">免费通话记录</h2>
		<div class="topMain clearfix">
			<input type="text" placeholder="开始时间" class="inputSize timer" id="start" name="start" readonly="readonly" onclick="laydate()" ms-duplex="startDate" >
			<input type="text" placeholder="结束时间" class="inputSize timer" id="start" name="start" readonly="readonly" onclick="laydate()" ms-duplex="endDate">
			<input type="text" class="inputSize" placeholder="请输入手机号码" ms-duplex="telephone" />
			<select class="selectSize" ms-duplex="delflag">
				<option value="">预约状态</option>
				<option value="t">待处理</option>
				<option value="c">已处理</option>
				<option value="f">已过期</option>
			</select>
			<button class="btn1" ms-click="freePhone">搜索</button>
		</div>		
	</div>
	<ul class="tabList">
			<li class="tabCurrent" ms-click="toggle(0,'t')" id="nav0">待处理</li>
			<li ms-click="toggle(1,'c')" id="nav1">已处理</li>
			<li ms-click="toggle(2,'f')" id="nav2">已过期</li>
	</ul>
		<button class=" btn btnRead" id="deletaBatch" ms-click="allDel">批量删除</button>
	<table class="table table-striped">
		<thead>
			<tr>
				<th><input type="checkbox" data-duplex-changed="select_all_cb" ms-duplex-checked='select_all'></th>
				<th>提交时间</th>
				<th>预留电话</th>
				<th>症状描述</th>
				<th>预约状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ms-repeat="lis">
				<td><input type="checkbox" ms-duplex-number="selected" ms-attr-value='el.id'></td>
				<td>{{el.regdatetime|date("yyyy-MM-dd HH:mm:ss")}}</td>
				<td>{{el.telphone}}</td>
				<td>{{el.issuedesc}}</td>
				<td><label ms-if="el.delflag == 't'">未回访</label><label ms-if="el.delflag == 'c'">已回访</label><label ms-if="el.delflag == 'f'">已过期</label></td>
				<td class="edit" ms-if="el.delflag == 't'" >
					<div ms-click="phoneUpdate(el.id)">
						<i class="iconfont">&#xe614;</i>
						<h1>回访</h1>
					</div>
					<div ms-click="freeDetail(el.id)">
						<i class="iconfont">&#xe611;</i>
						<h1>查看</h1>
					</div>
					<div ms-click = "removeRemote($index, $remove,el.id)">
						<i class="iconfont">&#xe60d;</i>
						<h1>删除</h1>
					</div>
				</td>
				<td class="edit">
					<div ms-click="freeDetail(el.id)">
						<i class="iconfont">&#xe611;</i>
						<h1>查看</h1>
					</div>
					<div ms-click = "removeRemote($index, $remove,el.id)">
						<i class="iconfont">&#xe60d;</i>
						<h1>删除</h1>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</div>
